<!DOCTYPE html>
<html lang="">

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0">
  <link rel="icon" href="<%= BASE_URL %>favicon.ico">
  <title>积分兑换</title>
  <script src="https://static.tongdun.net/monitor/monitor.js" async crossorigin="anonymous"></script>
  <script type="text/javascript">
    // 生成通付盾设备指纹 fingerprint
    (function () {
      let fpHostUrl
      if (document.domain === 'j.jinshanju.com') {// 生产环境
        fpHostUrl = 'https://fp.tongdun.net'
      } else {// 测试环境
        fpHostUrl = 'https://fptest.tongdun.net'
      }
      window._fmOpt = {
        partner: 'changyou',
        appName: 'changyou_web',
        token: 'changyou' + "-" + new Date().getTime() + "-" + Math.random().toString(16).substr(2),
        fmb: true,
        success: function (data) {
          // 在成功完成采集后，success回调中可以获取到blackbox，在获取到blackbox后传输过程中请进行url编码
          console.log('blackbox: ', data)
          window.fingerprint = data
        },
        fpHost: fpHostUrl
      };
      var cimg = new Image(1, 1);
      cimg.onload = function () {
        _fmOpt.imgLoaded = true;
      };
      cimg.src = fpHostUrl + "/fp/clear.png?partnerCode = changyou & appName=changyou_web & tokenId=" + _fmOpt.token;
      var fm = document.createElement('script'); fm.type = 'text/javascript';
      fm.async = true;
      fm.src = ('https:' == document.location.protocol ? 'https://' : 'http://') +
        'static.tongdun.net/v3/fm.js?ver=0.1&t=' + (new Date().getTime() / 3600000).toFixed(0);
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(fm, s);
    })();
    // 生成通付盾sessionId 通付盾码
    (function () {
      var url, ts, sessionId, appId, appkey;
      if (document.domain === 'j.jinshanju.com') {
        url = "tfd.changyoyo.com";
      } else {
        url = "101.132.237.10";
      }
      appId = "5308e20b";
      appkey = "3daf27ea2fe840ada6af8e1ec0d7b760";
      ts = new Date().getTime();
      sessionId = "changyo-pc-" + ts + "-" + Math.random().toString(16).substr(2);
      window.sessionId = sessionId;
      with (document) {
        [getElementsByTagName('script')[0].parentNode.appendChild(createElement('script')).src = "//" + url + "/did/js/dp.js?appId=" + appId + "&appkey=" + appkey + "&sessionId=" + sessionId + "&ts=" + ts][0];
      }
    })()
  </script>
</head>

<body>
  <noscript>
    <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
        Please enable it to continue.</strong>
  </noscript>
  <div id="app"></div>
  <!-- built files will be auto injected -->
</body>

</html>